package org.lanqiao.tjut.testpractice;

public class Student {
	
	/**
	 * 学生姓名属性
	 */
	private String stuName;
	
	/**
	 * 学生年龄属性
	 */
	private int stuAge;
	/**
	 * 学生性别属性
	 */
	private String stuSex;
	/**
	 * 学生地址属性
	 */
	private String stuAddress;
	/**
	 * 学生学号属性
	 */
	private int stuNumber;
	/**
	 * 学生成绩属性
	 */
	private String stuGrade;
	/**
	 * 学生系别属性
	 */
	private String stuDepartment;
	/**
	 * 
	 */
	private String stuCourse;
	
	//姓名对应学号
	public Student(String stuName, int stuNumber) {
		super();
		this.stuName = stuName;
		this.stuNumber = stuNumber;
	}
	
	// 姓名，成绩，课程
	public Student(String stuName, String stuGrade, String stuCourse) {
		this.stuName = stuName;
		this.stuGrade = stuGrade;
		this.stuCourse = stuCourse;
	}

	// 姓名，年龄，性别，地址，学号，成绩，系别，课程
	public Student(String stuName, int stuAge, String stuSex, String stuAddress, int stuNumber, String stuGrade,
			String stuDepartment, String stuCourse) {
		this.stuName = stuName;
		this.stuAge = stuAge;
		this.stuSex = stuSex;
		this.stuAddress = stuAddress;
		this.stuNumber = stuNumber;
		this.stuGrade = stuGrade;
		this.stuDepartment = stuDepartment;
		this.stuCourse = stuCourse;
	}

	public Student() {
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public int getStuAge() {
		return stuAge;
	}

	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	public String getStuAddress() {
		return stuAddress;
	}

	public void setStuAddress(String stuAddress) {
		this.stuAddress = stuAddress;
	}

	public int getStuNumber() {
		return stuNumber;
	}

	public void setStuNumber(int stuNumber) {
		this.stuNumber = stuNumber;
	}

	public String getStuGrade() {
		return stuGrade;
	}

	public void setStuGrade(String stuGrade) {
		this.stuGrade = stuGrade;
	}

	public String getStuDepartment() {
		return stuDepartment;
	}

	public void setStuDepartment(String stuDepartment) {
		this.stuDepartment = stuDepartment;
	}
	public String getStuCourse() {
		return stuCourse;
	}

	public void setStuCourse(String stuCourse) {
		this.stuCourse = stuCourse;
	}
	
	//学生某课程成绩查询方法
	public void StudyingGrade(){
		System.out.println(this.getStuName()+" 的"+this.getStuCourse()+" 课程成绩为： "+this.getStuGrade());
	}
	
	//学生对应学号查询方法
	public void StudyingNumber(){
		System.out.println(this.getStuName()+" 对应的学号为："+this.getStuNumber());
	}

	
}
